package com.chenyun.system.feign;

import com.chenyun.system.vo.SysRegionVO;
import com.chenyun.common.constants.AppConstans;
import com.chenyun.common.service.IBaseFeignService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 省市区feign定义类
 *
 * @author: Lonni
 * @date: 2022/11/8 0008 15:05
 */
@FeignClient(value = AppConstans.APPLICATION_SYSTEM_NAME, path = AppConstans.AppContextPath.SYSTEM_CONTEXT_PATH)
public interface ISysRegionFeign extends IBaseFeignService {

    @GetMapping(prefix + "getProvinces")
    public List<SysRegionVO> getProvinces();

    @GetMapping(prefix + "getCitys")
    public List<SysRegionVO> getCitys(@RequestParam("proId") String proId);

    @GetMapping(prefix + "getAreas")
    public List<SysRegionVO> getAreas(@RequestParam("cid") String cid);

}
